<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('index')}">中介公司列表</a></li>
			<li class="active"><a href="">编辑</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('edit')}">
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>姓名</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-name" name="name" value="{$result.name}" required>
				</div>
			</div>
			<div class="form-group">
				<label for="input-company" class="col-sm-2 control-label"><span class="form-required">*</span>公司名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$result.company}" required id="input-company" name="company">
				</div>
			</div>
			<div class="form-group">
				<label for="input-address" class="col-sm-2 control-label"><span class="form-required">*</span>地址</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$result.address}" required id="input-address" name="address">
				</div>
			</div>
			<div class="form-group">
				<label for="input-phone" class="col-sm-2 control-label"><span class="form-required">*</span>联系方式</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$result.phone}" required id="input-phone" name="phone">
				</div>
			</div>
			<div class="form-group">
				<label for="input-business" class="col-sm-2 control-label"><span class="form-required">*</span>主营产品或服务</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$result.business}" required id="input-business" name="business">
				</div>
			</div>
			<div class="form-group">
				<label for="input-registered_capital" class="col-sm-2 control-label"><span class="form-required">*</span>注册资金</label>
				<div class="col-md-6 col-sm-10 input-group" style="width:200px;padding: 0 15px;">
					<input type="number" class="form-control" id="input-registered_capital" required name="registered_capital" value="{$result.registered_capital}">
					<span class="input-group-addon">万元</span>
				</div>
			</div>
			<div class="form-group">
				<label for="input-currency" class="col-sm-2 control-label"><span class="form-required">*</span>货币种类</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" style="width:400px;" required value="{$result.cname}"
						   placeholder="请选择币种" onclick="doSelectLayer(this);"
						   data-url="{:url('resource/currency/select')}" data-id="input-currency" name="layer_temp[0]"
						   readonly/>
					<input class="form-control" type="hidden" value="{$result.currency}" name="currency"
						   id="input-currency"/>
				</div>
			</div>
			<div class="form-group">
				<label for="input-regtime" class="col-sm-2 control-label"><span class="form-required">*</span>成立时间</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control js-bootstrap-date" required data-max-date="{:date('Y-m-d')}" type="text" name="regtime" id="input-regtime"
						   value="{$result.regtime|date='Y-m-d',###}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-management_model" class="col-sm-2 control-label">经营模式</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-management_model" name="management_model" value="{$result.management_model}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-staffs" class="col-sm-2 control-label"><span class="form-required">*</span>员工人数</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" style="width:400px;" required value="{$result.sname}"
						   placeholder="请选择员工人数" onclick="doSelectLayer(this);"
						   data-url="{:url('CustomerNature/select',['type'=>5])}" data-id="input-staffs" name="layer_temp[1]"
						   readonly/>
					<input class="form-control" type="hidden" value="{$result.staffs}" name="staffs"
						   id="input-staffs"/>
				</div>
			</div>
			<div class="form-group">
				<label for="input-acreage" class="col-sm-2 control-label">营业面积</label>
				<div class="col-md-6 col-sm-10 input-group" style="width:200px;padding: 0 15px;">
					<input type="number" class="form-control" id="input-acreage" name="acreage" value="{$result.acreage}">
					<span class="input-group-addon">平方米</span>
				</div>
			</div>
			<div class="form-group">
				<label for="input-turnover" class="col-sm-2 control-label"><span class="form-required">*</span>年营业额</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" style="width:400px;" required value="{$result.tname}"
						   placeholder="请选择员工人数" onclick="doSelectLayer(this);"
						   data-url="{:url('CustomerNature/select',['type'=>6])}" data-id="input-turnover" name="layer_temp[2]"
						   readonly/>
					<input class="form-control" type="hidden" value="{$result.turnover}" name="turnover"
						   id="input-turnover"/>
				</div>
			</div>
			<div class="form-group">
				<label for="textarea-introduction" class="col-sm-2 control-label">公司介绍</label>
				<div class="col-md-6 col-sm-10">
					<textarea name="introduction" class="form-control" id="textarea-introduction" rows="3">{$result.introduction}</textarea>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="id" value="{$result.id}"/>
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">返回</a>
				</div>
			</div>
		</form>
	</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>